package org.lee.springcloud.config.client.mqbus.controllers;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author jackielee
 * @version 1.0
 * @description HelloController
 * @date 2021/3/11
 **/
@RestController
@RefreshScope
public class HelloController {
    @Value("${myspringcloud.hello}")
    private String hello;

    @GetMapping("/hello")
    public String from(){
        return hello;
    }
}
